<?php defined('SEJUJOPEFDNGJSL') or exit('Access denied');?>
<?php
if(empty($_SESSION["checkscode"])||!strstr($_SESSION["checkscode"],'xiaojinlist')){
    $_GET["m"]="xiaojinlist";
    @require(ROOTTHEMETEMP."checkscode.inc.php");
    exit;
}
?>
<script type="text/javascript" src="<?php echo SITETHEME;?>js/reg.js"></script>
<script type="text/javascript" src="<?php echo SITETHEME;?>js/tip.js"></script>
<script type="text/javascript" src="<?php echo SITETHEME;?>js/checkreg.js"></script>
<div class="indent-r-kuai-image clear">
	<span class="kuai-im im4"><a href="<?php echo SITEINDEX?>?lsact=cunkuan"><img src="theme/images/setbg.png">提供帮助</a></span>
	<span class="kuai-im im5" style="margin-right: 0px;"><a href="<?php echo SITEINDEX?>?lsact=qukuan"><img src="theme/images/getbg.png">获取帮助</a></span>
</div>
<div class="right_center">实名认证</div>
<?php
if($r['is_id_verified']==0){
?>
<form action="control.php" method="post" enctype="multipart/form-data">
	<input type="hidden" name="act" value="idverify" />
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;" class="baitab" align="center">
		<tbody>
			<tr>
				<td width="25%" valign="top" align="right">账号：</td>
				<td valign="top" align="left"><?php echo $r['uname']?></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">姓名：</td>
				<td valign="top"><?php echo $r['real_name']?></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">上传身份证正面照片：</td>
				<td valign="top" align="left"><input type="file" name="zheng_src" size="30" value="" /></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">上传银行卡正面照片：</td>
				<td valign="top" align="left"><input type="file" name="fan_src" size="30" value="" onchange="alert('若图片较大可能需要两分钟时间，请耐心等待！');" /></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">验证码：</td>
				<td valign="top" align="left"><input type="text" style="width:100px;height:30px;" name="yzm" class="vcode-text" style="width: 200px;">&nbsp;&nbsp;&nbsp;<img src='include/code.php' onclick='this.src="include/code.php?"+Math.random()' class="yzm-img"  style='' title='看不清楚点击可以刷新' ></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right" style="height:50px;line-height:50px"></td>
				<td valign="top" style="height:50px;line-height:50px">
					<input type="submit" value="提交审核" class="btn" >
				</td>
			</tr>
		</tbody>
	</table>
</form>
<?php
}else{
	$db->query("select * from ld_id_verify where uname='".$r['uname']."'",2);
	$apply_verify=$db->rs;
?>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;" class="baitab" align="center">
		<tbody>
			<tr>
				<td width="25%" valign="top" align="right">账号：</td>
				<td valign="top" align="left"><?php echo $r['uname']?></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">姓名：</td>
				<td valign="top"><?php echo $r['real_name']?></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">身份证正面照片：</td>
				<td valign="top" align="left"><img width=400 src="<?php echo $r['is_id_verified']==1 ? YUMING.'upfile/'.$r["zheng_src"] : YUMING.'upfile/'.$apply_verify['zheng_src']?>"></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">   </td>
				<td valign="top"></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right">银行卡正面照片：</td>
				<td valign="top" align="left"><img width=400 src="<?php echo $r['is_id_verified']==1 ? YUMING.'upfile/'.$r["fan_src"] : YUMING.'upfile/'.$apply_verify['fan_src']?>"></td>
			</tr>
			<tr>
				<td width="25%" valign="top" align="right" style="height:50px;line-height:50px">状态：</td>
				<td valign="top" style="height:50px;line-height:50px">
				<?php
				if($r['is_id_verified']==1){
				?>
					您已经通过实名认证
				<?php
				}elseif($r['is_id_verified']==2){
				?>
					等待管理员审核
				<?php
				}elseif($r['is_id_verified']==3){
				?>
					<br />
					&nbsp;审核不通过，理由是：<?php echo $apply_verify['admin_say']; ?><br />
					<form action="control.php" method="post">
						<input type="hidden" name="act" value="delverify" />
						<input type="hidden" name="uid" value="<?php echo $r['id']; ?>">
						<input type="submit" value="重新申请" class="btn" >
					</form>
				<?php
				}
				?>
				</td>
			</tr>
		</tbody>
	</table>
<?php
}
?>